package com.xbs.controller.backstage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 顺风车订单管理
 */
import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.HitchOrderAdminEntity;
import com.xbs.service.hitchhiking.HitchCarAdminService;
import com.xbs.service.hitchhiking.HitchOrderAdminService;
@WebServlet("/backstage/hitchhikingOrder")
public class HitchhikingOrderServlet extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		HitchOrderAdminService hoas = new HitchOrderAdminService();
		
		List<HitchOrderAdminEntity> hoaelst = hoas.getAdminOrder();
		req.setAttribute("hoaelst",hoaelst);
		
		
		forward("admin/basicSetting/llp_hitchhikingOrder");
	}
}
